package cn.stylefeng.guns.modular.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @author allen
 * @date 2021/4/11 17:18
 * @version 1.0
 */
/**
    * 订单操作记录表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "order_operate_log")
public class OrderOperateLogEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单ID
     */
    @TableField(value = "order_info_id")
    private Long orderInfoId;

    /**
     * 操作类型，1：创建订单，2：手动取消订单，3：自动取消订单，4：支付订单，5：手动确认收货，6：自动确认收货，7：商品发货，8：申请退货，9：退货审核不通过，10：退货审核通过，11：寄送退货商品，12：确认收到退货，13：退货已入库，14：完成退款
     */
    @TableField(value = "operate_type")
    private Integer operateType;

    /**
     * 操作内容
     */
    @TableField(value = "operate_content")
    private String operateContent;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_ORDER_INFO_ID = "order_info_id";

    public static final String COL_OPERATE_TYPE = "operate_type";

    public static final String COL_OPERATE_CONTENT = "operate_content";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";
}